import DouTo from './components/DoTo/DouTo'
import {Switch, Route, Redirect,Link} from "react-router-dom"
import TheLoanDetails from './components/DoTo/TheLoanDetails'
import OverDue from './components/OverDue/OverDue'
import CollectionRecords from './components/CollectionRecords/CollectionRecords'
import DueRemind from './components/DoTo/DueRemind'
import CollectionRecordDetails from './components/OverDue/CollectionRecordDetails'

function DoToAll() {
  return (
    <div className="DoToAll">
      <Link to='/home/duto'>即将到期</Link>
      <br/>
      <Link to='/home/overduto'>已逾期</Link>
      <br/>
      <Link to='/home/collectionrecords'>催收记录</Link>
      <Switch>
          {/* <Redirect exact from='/home' to='/home/duto'/>
          <Route path='/home/duto' component={DouTo}></Route>
          <Route path='/home/theloandetails' component={TheLoanDetails}></Route>
          <Route path='/home/overduto' component={OverDue}></Route>
          <Route path='/home/collectionrecords' component={CollectionRecords}></Route>
          <Route path='/home/dueremind' component={DueRemind}></Route>
          <Route path='/home/collectionrecorddetails' component={CollectionRecordDetails}></Route> */}
      </Switch>
    </div>
  );
}

export default DoToAll;